package ModelLayer;

import java.sql.Date;

public class Contract extends DateHelper {
	private int period, contractId;
	private double commission;
	private boolean expired;
	private Apartment apartment = new Apartment();
	private Tenant tenant = new Tenant();
	

	public Contract() {
		super();
	}

	public Contract(int period, int contractId, Apartment apartment, Date startDate, Tenant tenant) {
		super(startDate);
		
		this.period = period;
		this.contractId = contractId;
		this.tenant = tenant;
		this.apartment = apartment;
	}
	

	

	public int getContractId() {
		return contractId;
	}

	public void setContractId(int contractId) {
		this.contractId = contractId;
	}

	public Apartment getApartment() {
		return apartment;
	}

	public void setApartment(Apartment apartment) {
		this.apartment = apartment;
	}

	public int getPeriod() {
		return period;
	}

	public void setPeriod(int period) {
		this.period = period;
	}

	public Tenant getTenant() {
		return tenant;
	}

	public void setTenant(Tenant tenant) {
		this.tenant = tenant;
	}

	public double getCommission() {
		return commission;
	}

	public void setCommission(double commission) {
		this.commission = commission;
	}
	
	public boolean isExpired(){
		return expired;
	}
	
	public void setExpired(boolean expired){
		this.expired = expired;
	}

}
